package cn.zn.base.common.utils;

public class AdminUtil {

    private static final String ADMIN_LOGIN_NAME = "admin";

    public static final String ADMIN_ROLE = "sup_admin";

    /**
     * 是否为管理员
     *
     * @param loginName 用户ID
     * @return 结果
     */
    public static boolean isAdmin(String loginName) {
        return ADMIN_LOGIN_NAME.equals(loginName);
    }

    /**
     * 是否为管理员角色
     *
     * @param roleKey 用户ID
     * @return 结果
     */
    public static boolean isROleAdmin(String roleKey) {
        return ADMIN_ROLE.equals(roleKey);
    }

}
